package OrdersSystem;

import java.util.ArrayList;

/**
 * Class that inherits the features of the RegisteredUser class.
 * 
 * @author iSolutions Orders Team
 *
 */
public class PnGEmployee extends RegisteredUser
{
	/**
	 * The Constructor of the class, which uses the constructor of the super class
	 * 
	 * @param userID the number, which uniquely identifies a user
	 * @param name the first name of the user
	 * @param surname the second name of the user
	 * @param address the contact details of the user
	 * 
	 */ 
	public PnGEmployee(int userID, String name, String surname,
			ContactDetails address) {
		super(userID, name, surname, address);
		
	}	

	/**
	 * A method used to present all the orders made in the system
	 * 
	 */ 	
	public ArrayList<Order> viewHistoryTracking()
	{
		HistoryTracking history = new HistoryTracking();
        return history.getOrderHistory();
	}
	
	/**
	 * A method used to generate a new Report, based on the data available in the database
	 * 
	 */ 
	public void requestReport(int reportID, String reportType) {
		Report report = new Report();
		report.generateReport(reportID, reportType);  // generate the report based on this input
	}
		
}
